package com.epam.service;

import java.util.ArrayList;

import com.epam.dao.h2.H2TrainingDao;
import com.epam.entity.Training;

public class TrainingListForTeacher extends ArrayList<Training> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	 public TrainingListForTeacher(Long teacherId) {
		 H2TrainingDao h2TrainingDao = new H2TrainingDao();		
		this.addAll(h2TrainingDao.selectForTeacher(teacherId));		 
	 }
	

}
